package com;

public enum Season {//枚举类
    SPRING("春",1,3,1),
    SUMMER("夏",4,6,2),
    AUTUMN("秋",7,9,3),
    WINTER("冬",10,12,4)
    ;
    private String seasonName;
    private int beginMonth;
    private int OverMonth;
    private int quarter;

    Season(String seasonName, int beginMonth, int overMonth, int quarter) {
        this.seasonName = seasonName;
        this.beginMonth = beginMonth;
        OverMonth = overMonth;
        this.quarter = quarter;
    }

    public String getSeasonName() {
        return seasonName;
    }

    public int getBeginMonth() {
        return beginMonth;
    }

    public int getOverMonth() {
        return OverMonth;
    }

    public int getQuarter() {
        return quarter;
    }

    @Override
    public String toString() {
        return "Season{" +
                "seasonName='" + seasonName + '\'' +
                ", beginMonth=" + beginMonth +
                ", OverMonth=" + OverMonth +
                ", quarter=" + quarter +
                '}';
    }
}
